package xian.woniuxy.config;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import xian.woniuxy.domain.ResultVo;

/**
 * @author gao
 * @date 2023/07/05 16:04:11
 */
@RestControllerAdvice
public class GlobalExceptionHandler {

    @ExceptionHandler(Exception.class)
    public ResultVo f1(Exception e) {
        // for debug
        e.printStackTrace();
        return ResultVo.failure(e.toString());
    }
}
